<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Change</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
    用户名：<input type="text" name="user" value="{{ user.username }}">
    <br>
    密码：<input type="password" name="pwd" value="{{ user.password }}">
    <br>
    头像：<input type="file" name="img">
    <input type="text" name="id" value="{{ id }}" hidden>
    <br>
    <br>
    类别：
    <select name="type" id="type" value={{ user.type }}>
        <option value="0">普通用户</option>
        <option value="1">管理员</option>
        <option value="2">商家</option>
    </select>
    <br>
    <input type="submit" value="修改">
</form>
</body>
</html>